ToArray Method (Collection<T>)
Copies the elements of the
Collection<T> to a new array.
'Declaration
Public Function ToArray( _
Optional ByVal As Boolean _
) As
'Usage
Dim instance As Collection(Of T)
Dim direct As Boolean
Dim value() As
value = instance.ToArray(direct)
Parameters
- direct
Return Value
An array containing copies of the elements of the
Collection<T>.